const http = require('http');
const mysql = require('mysql');
let db = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: '19911020wcp',
    database: 'test'
});
db.query('select * from usertest', (err, data) => {
    if (err) {
        console.log(err);
    }
    else {
        console.log(data);
    }
})